<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>订单修改 - Layui</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<link rel="stylesheet" href="/css/admin.css">
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    @include('admin.header')
  </div>
  <div class="layui-side layui-bg-black">
    @include('admin.leftadmin')
  </div>
  <div class="layui-body">
  <div>
   <form action="orderdochange" method="post" style="width:500px;margin-top: 20px;margin-left: 50px">
     <input type="hidden" name="thisid" value="<?php echo $str['id'];?>">
    <div class="layui-form-item">
      <label class="layui-form-label">店名</label>
      <div class="layui-input-block">
        <input type="text" name="shopname" lay-verify="required" value="<?php echo $str['shopname']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">服务内容</label>
      <div class="layui-input-block">
        <input type="text" name="f_id" lay-verify="required" value="<?php echo $str['f_id']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">车牌号</label>
      <div class="layui-input-block">
        <input type="text" name="platenumber" lay-verify="required" value="<?php echo $str['platenumber']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">车主</label>
      <div class="layui-input-block">
        <input type="text" name="username" lay-verify="required" value="<?php echo $str['username']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">联系方式</label>
      <div class="layui-input-block">
        <input type="text" name="phone" lay-verify="required" value="<?php echo $str['phone']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">核验码</label>
      <div class="layui-input-block">
        <input type="text" name="firm_orders" lay-verify="required" value="<?php echo $str['firm_orders']?>" autocomplete="off" class="layui-input">
      </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">预约时间</label>
       <div class="layui-inline">
        <input class="layui-input " name="timeapp" value="<?php echo $str['timeapp']?>" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
       </div>
    </div>
     <div class="layui-form-item">
      <label class="layui-form-label">完成时间</label>
      <div class="layui-inline">
        <input class="layui-input" name='servicetime' value="<?php $date = empty($str['servicetime']) ? date('Y-m-d H:i:s',time()) : $str['servicetime'];
        echo $date;?>" placeholder="填写服务完成时间" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
       </div>
    </div>
    <div class="layui-block">
    <input type="hidden"  class="status_kid" value="<?php echo $str['status']?>">
      <label class="layui-form-label">预约状态</label>
      <div class="layui-input-inline" >
        <select name="status" lay-verify="" lay-search="" id="eventLevel" style="height:37px;width:100px">
        <?php foreach($os as $k=>$v):?>
          <option value="<?php echo $k?>"><?php echo $v?></option>
        <?php endforeach;?>
        </select>
      </div>
      </div>
     <div class="layui-form-item" style="margin-top: 20px">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit="" lay-filter="demo1">确认修改</button>          
      </div>
     </div> 




   </form>
  </div>
     
  </div>
  <div class="layui-footer">
    <!-- 底部固定区域 -->
  </div>

</body>
</html>

<script src="/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
  var kid=$(".status_kid").val();
  $("#eventLevel").val(kid);
})



</script>
<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  var start = {
    min: laydate.now()
    ,max: '2099-06-16 23:59:59'
    ,istoday: false
    ,choose: function(datas){
      end.min = datas; //开始日选好后，重置结束日的最小日期
      end.start = datas //将结束日的初始值设定为开始日
    }
  };
  
  var end = {
    min: laydate.now()
    ,max: '2099-06-16 23:59:59'
    ,istoday: false
    ,choose: function(datas){
      start.max = datas; //结束日选好后，重置开始日的最大日期
    }
  };
  
  document.getElementById('LAY_demorange_s').onclick = function(){
    start.elem = this;
    laydate(start);
  }
  document.getElementById('LAY_demorange_e').onclick = function(){
    end.elem = this
    laydate(end);
  }
  
});

</script>

<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  
  
});



</script>

